<nz-spin [nzSpinning]="isLoadingSave">
  <form nz-form>
    <div nz-row [nzGutter]="24">
      <div nz-col [nzSpan]="6">
        <nz-form-item>
          <!-- 单据编码 -->
          <nz-form-label [nzSm]="6" [nzXs]="24">{{ 'documents.code' | translate }}</nz-form-label>
          <nz-form-control [nzSm]="14" [nzXs]="24">
            {{ managerPaymentAndReceiptSlip.billcode }}
          </nz-form-control>
        </nz-form-item>
      </div>
    </div>
    <div nz-row [nzGutter]="24">
      <div nz-col [nzSpan]="6">
        <nz-form-item>
          <!-- 客户编码 -->
          <nz-form-label [nzSm]="6" [nzXs]="24">{{ 'customer.code' | translate }}</nz-form-label>
          <nz-form-control [nzSm]="14" [nzXs]="24">
            {{ managerPaymentAndReceiptSlip.cusCode }}
          </nz-form-control>
        </nz-form-item>
      </div>
      <div nz-col [nzSpan]="6">
        <nz-form-item>
          <!-- 客户名称 -->
          <nz-form-label [nzSm]="6" [nzXs]="24">{{ 'customer.name' | translate }}</nz-form-label>
          <nz-form-control [nzSm]="14" [nzXs]="24">
            {{ managerPaymentAndReceiptSlip.cusName }}
          </nz-form-control>
        </nz-form-item>
      </div>
      <div nz-col [nzSpan]="6">
        <nz-form-item>
          <!-- 项目编码 -->
          <nz-form-label [nzSm]="6" [nzXs]="24">{{ 'project.code' | translate }}</nz-form-label>
          <nz-form-control [nzSm]="14" [nzXs]="24">
            {{ managerPaymentAndReceiptSlip.proCode }}
          </nz-form-control>
        </nz-form-item>
      </div>
      <div nz-col [nzSpan]="6">
        <nz-form-item>
          <!-- 项目名称 -->
          <nz-form-label [nzSm]="6" [nzXs]="24" nzRequired>{{ 'cost.item.name' | translate }}</nz-form-label>
          <nz-form-control [nzSm]="14" [nzXs]="24">
            {{ managerPaymentAndReceiptSlip.proName }}
          </nz-form-control>
        </nz-form-item>
      </div>
    </div>
  </form>
  <!-- 子表数据 -->
  <nz-card>
    <div nz-row [nzGutter]="24">
      <div nz-col [nzSpan]="24">
        <nz-table
          style="padding-top: 5px;"
          nzSize="small"
          #basicTable
          [nzData]="itemDataList"
          [nzFrontPagination]="false"
          [nzShowPagination]="false"
        >
          <thead>
            <tr>
              <!-- 序号 -->
              <th nzAlign="center">{{ 'milestone.serial.number' | translate }}</th>
              <!-- 收付款条线 -->
              <th>{{ 'receiving.line' | translate }}</th>
              <!-- 里程碑 -->
              <th>{{ 'milestone.milestone' | translate }}</th>
              <!-- 付款金额 -->
              <th>{{ 'payFor' | translate }}{{ 'their.fees.money' | translate }}</th>
              <!-- 说明 -->
              <th>{{ 'instructions' | translate }}</th>
              <!-- 对应发票 -->
              <th>{{ 'corresponding.invoice' | translate }}</th>
            </tr>
          </thead>
          <tbody>
            <tr *ngFor="let data of basicTable.data; let i = index">
              <td nzAlign="center">{{ i + 1 }}{{ data.sort }}</td>
              <td style="width: 20%;">
                {{ data.coArchivesName }}
              </td>
              <td style="width: 20%;">
                {{ data.proArchivesMilestone }}
              </td>
              <td>$ {{ data.coPrvice }}</td>
              <td>
                {{ data.explain }}
              </td>
              <td style="width: 20%;">
                {{ data.invoice }}
              </td>
            </tr>
            <tr *ngIf="itemDataList && itemDataList.length > 0">
              <td colSpan="2"></td>
              <!-- 付款总金额 -->
              <td>
                <strong>{{ 'payFor.total.amount' | translate }}</strong>
              </td>
              <td>
                <strong>$ {{ managerPaymentAndReceiptSlip.totalPrice }}</strong>
              </td>
              <td colSpan="2"></td>
            </tr>
          </tbody>
        </nz-table>
      </div>
    </div>
  </nz-card>
</nz-spin>
<!-- 按钮 -->
<div class="base">
  <!-- 关闭按钮 -->
  <button nz-button (click)="close()" [nzLoading]="isLoadingSave">
    <span>{{ 'pm.quotation.cancel' | translate }}</span>
  </button>
</div>
